<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>列表展示</title>
</head>
<body>
<s:if test="pagination.totalPage!=0">
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td valign="bottom" align="left" nowrap="nowrap" style="width:40%;">
	总记录：
	<s:property value="pagination.totalRecord"/>
	条&nbsp;&nbsp;每页:
	<s:property value="pagination.size"/>
	条&nbsp;&nbsp;页码： 第
	<s:property value="pagination.currentPage"/>
	页/共
	<s:property value="pagination.totalPage"/>
	页
	</td>
	<td valign="bottom" align="right" nowrap="nowrap" style="width:60%;">
		<s:url action="%{url}" id="first" >
			<s:param name="action" value="list"></s:param>
		 	<s:param name="pagination.currentPage" value="1"></s:param>
		</s:url>
		<s:url action="%{url}" id="next" >
			<s:param name="action" value="list"></s:param>
		 	<s:param name="pagination.currentPage" value="pagination.currentPage+1"></s:param>
		</s:url>
		<s:url action="%{url}" id="prior" >
			<s:param name="action" value="list"></s:param>
		 	<s:param name="pagination.currentPage" value="pagination.currentPage-1"></s:param>
		</s:url>
		<s:url action="%{url}" id="last" >
			<s:param name="action" value="list"></s:param>
		 	<s:param name="pagination.currentPage" value="pagination.totalPage"></s:param>
		</s:url>
		<s:if test="pagination.currentPage == 1">
			<span class="current">首页</span>
			<span class="current">上一页</span>
		</s:if>
		<s:else>
			<s:a href="%{first}" cssStyle="margin-right:5px;" >首页</s:a>
			<s:a href="%{prior}" cssStyle="margin-right:5px;" >上一页</s:a>
		</s:else>
		<s:if test="pagination.currentPage == pagination.totalPage||pagination.totalPage==0">
			<span class="current">下一页</span>
			<span class="current">末页</span>
		</s:if>
		<s:else>
			<s:a href="%{next}" cssStyle="margin-right:5px;" >下一页
			</s:a>&nbsp;&nbsp;
			<s:a href="%{last}" cssStyle="margin-right:5px;" >末页</s:a>
		</s:else>
	</td>
 </tr>		
</table>
</s:if>
</body>
</html>